﻿using Sharp.Domain.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sharp.Domain.PlatformBoundedContext.OAuthModule
{
    public class AccessToken : IAggregateRoot<int>
    {
        /// <summary>
        /// Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// AccessToken
        /// </summary>
        public string Token { get; set; }
        /// <summary>
        /// 客户端Id
        /// </summary>
        public string ClientId { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime Expires { get; set; }
        /// <summary>
        /// 范围
        /// </summary>
        public string Scope { get; set; }
    }
}
